<?xml version="1.0" encoding="windows-1252"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      >
    <h:head>
    </h:head>
    <h:body>

        <ui:composition template="WEB-INF/facelets/LoginTemplate.xhtml">
            <ui:define name="content">
                <h:form>
                    Username: <h:inputText id="usernameInput" value="#{LoginBean.username}"/> <br/>
                    Password: <h:inputSecret id="passwordInput" value="#{LoginBean.password}"/> <br/>
                    <h:commandButton id="buttonUpload" value="OK"
                                     action="#{LoginBean.login}"/>
                    <a href="register.jsf">Register</a>
                </h:form>
                <table>
                    <ui:repeat value="#{LoginBean.errors}" var="error">
                        <tr>
                            <td>#{error}</td>
                        </tr>
                    </ui:repeat>
                </table>



            </ui:define>
        </ui:composition>

    </h:body>
</html>
